<%--
  Created by IntelliJ IDEA.
  User: 12701
  Date: 2024/9/9
  Time: 9:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form  id="f1" action="${pageContext.request.contextPath}/register/findPatientById.do" method="post">
    <input type="hidden" name="id" id="id" value="2">
    <input type="hidden" name="id2" id="id2" value="1">
    <button type="button" class="btn btn-default" onclick="toAdd(id=2)" ><i class="fa fa-file-o"></i> 患者</button>
    <button type="button" class="btn btn-default" onclick="toAdd2(id2=1)" ><i class="fa fa-file-o"></i> 医生</button>
</form>
<script>
    function toAdd(id){
        window.location.href="${pageContext.request.contextPath}/register/findPatientById.do?id="+id;

    }function toAdd2(id2){
        window.location.href="${pageContext.request.contextPath}/register/findDoctorById.do?id="+id2;

    }
</script>
</body>
</html>
